import React, {Component} from 'react';
import ThemContext from "./context/them-context";

class HomeInfo extends Component {
    render() {
        return (
            <div>
                <ThemContext.Consumer>
                    {
                        value => {
                            return <h2> Banner theme:{value.color}</h2>
                        }
                    }
                </ThemContext.Consumer>

            </div>
        );
    }
}

export default HomeInfo;